#ifndef URLIMAGELABEL_H
#define URLIMAGELABEL_H
#include<QLabel>
#include <QNetworkReply>
#include <QPixmap>
class URLImageLabel : public QLabel
{
    Q_OBJECT
public:
    explicit URLImageLabel(QWidget *parent = nullptr);
    ~URLImageLabel();
    void showURLImage(QString s);
    void replyFinished(QNetworkReply *reply);
    void paint();
    void failed();
    void loading();
private:
    static QString cachePath;
    QString fileName;
    static QNetworkAccessManager* manager;
    static QString imgPath;
    QString imgUrl;
};

#endif // URLIMAGELABEL_H
